package offer_test_20;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
//空格替换为%20
public class four_ReplaceBlank {
public static void main(String[] args) throws IOException {
	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	System.out.println(str);
	StringBuffer sb=new StringBuffer();
	char[] ss=str.toCharArray();
	for(int i=0;i<str.length();i++){
		if(ss[i]==' '){
		sb.append("%20");}
		else{
			sb.append(ss[i]);
		}
	}
	System.out.println(sb.toString());
}
}
